package com.dm.cloud.images.common.mode;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description ="镜像标签")
public class ImageTag {

    @Schema(description = "镜像标识")
    private String digest;

    @Schema(description = "大小:kb")
    private Long size;

    @Schema(description = "artifact_id")
    private Integer artifact_id;

    @Schema(description = "tagId")
    private Integer id;

    @Schema(description="镜像名称")
    private String image_name;

    @Schema(description="tag名称")
    @JSONField(name = "name")
    private String tag_name;

    @Schema(description="拉取时间")
    private Date pull_time;

    @Schema(description="推送时间")
    private Date push_time;

    @Schema(description = "repository_id")
    private Integer repository_id;

}
